package com.gable.model;

import com.gable.util.ChineseToEnglish;
import com.gable.util.PageUtil;

import java.io.Serializable;
import java.util.List;

/**
 * 类说明：用户模块实体类
 * 创建时间：2016-08-16
 * @author 乔春峰
 */
public class User extends PageUtil implements Serializable{
	
	private Long id;			// 主键ID
	
	private String userName;	// 账号
	
	private String password;	// 密码
	
	private String email;		// 邮箱
	
	private String phone;		// 电话
	
	private Long roleId;		// 角色ID t_sys_role(外键)
	
	private Long hospitalId;	// 医院ID
	
	private Long serviceProviderId;	// 服务商ID
	
	private String name;		// 姓名
	
	private Long departmentId;	// 科室ID t_hospital_department(外键)
	
	private Long engineerHospitalId;		// 驻场医院
	
	private String headPhoto;	// 头像
	
	private String loginTime;	// 上次登录时间
	
	private String loginIp;		// 上次登录Ip
	
	private String token;		// 手机token
	
	private String createTime;	// 创建时间
	
	private long createPerson;	// 创建人
	
	private String updateTime;	// 更新时间
	
	private String updatePerson;// 更新人
	
	private Long status;		// 状态t_sys_items
	
	//=====================================附加参数==============================//
	private String role;		// 角色名称
	
	private String department;	// 科室名称
	
	private Long tag;			// 角色标签
	
	private String hospital;	// 医院名字
	
	private String engineerHospital;	// 工程师驻场医院
	
	private String provider;	// 服务商

	private String logoUrl;

	private String serviceProviderName;		// 维修商名字

	private int inside;//1：私有服务商员工，2：公有服务商员工

	private List<Long> providerId;        //私有服务商id的集合

	private String pyName;	//名称拼音简写

	public String getPyName() {
		return pyName;
	}

	public void setPyName(String pyName) {
		this.pyName = pyName;
	}

	private String lastLoginTime;

	public long getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(long createPerson) {
		this.createPerson = createPerson;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public List<Long> getProviderId() {
		return providerId;
	}

	public void setProviderId(List<Long> providerId) {
		this.providerId = providerId;
	}

	public String getLogoUrl() {
		return logoUrl;
	}

	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
		this.setPyName(ChineseToEnglish.getPingYin(name));
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public String getHeadPhoto() {
		return headPhoto;
	}

	public void setHeadPhoto(String headPhoto) {
		this.headPhoto = headPhoto;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public long getCreateperson() {
		return createPerson;
	}

	public void setCreateperson(long createPerson) {
		this.createPerson = createPerson;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdatePerson() {
		return updatePerson;
	}

	public void setUpdatePerson(String updatePerson) {
		this.updatePerson = updatePerson;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public Long getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(Long hospitalId) {
		this.hospitalId = hospitalId;
	}

	public Long getServiceProviderId() {
		return serviceProviderId;
	}

	public void setServiceProviderId(Long serviceProviderId) {
		this.serviceProviderId = serviceProviderId;
	}

	public Long getTag() {
		return tag;
	}

	public void setTag(Long tag) {
		this.tag = tag;
	}

	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public String getProvider() {
		return provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

	public Long getEngineerHospitalId() {
		return engineerHospitalId;
	}

	public void setEngineerHospitalId(Long engineerHospitalId) {
		this.engineerHospitalId = engineerHospitalId;
	}

	public String getEngineerHospital() {
		return engineerHospital;
	}

	public void setEngineerHospital(String engineerHospital) {
		this.engineerHospital = engineerHospital;
	}

	public int getInside() {
		return inside;
	}

	public void setInside(int inside) {
		this.inside = inside;
	}

	public String getServiceProviderName() {
		return serviceProviderName;
	}

	public void setServiceProviderName(String serviceProviderName) {
		this.serviceProviderName = serviceProviderName;
	}
}

